package cn.ytxy.double_system_data_visualization_demo.base.exception;


import cn.ytxy.double_system_data_visualization_demo.base.response.StatusCode;
import lombok.Getter;

/**
 * @ClassName ServiceException
 * @Description TODO
 * @Author renhong~Deng
 * @Date 2025/4/27 15:34
 * @Version 1.0
 */

/*自定义业务异常类*/
public class ServiceException extends RuntimeException {
    @Getter
    private StatusCode statusCode;


    public ServiceException(StatusCode statusCode) {
        this.statusCode = statusCode;
    }
}